package com.kgc.api.buylimit;


import com.kgc.bean.*;

import java.util.List;

/**
 * @Author：周申宇 <p>
 * @Date:2021/6/6 15:08
 * <p>
 * @Decription:  下单接口
 */
public interface TradeOrderApi {

    /**
     * @Auther: 周申宇
     * <p>
     * @Date: 2021/6/6
     * <p>
     * @Description:  模拟下单(出入的是实体)
     */
    void createTradeOrder(User user, GoodsItemVo goodsItemVo,Integer num, String tradeOrderNo);

    /**
     * @Author: zhouyu
     * @Param: [orderInfo, orderItem]
     * @Return: java.lang.Integer
     * @Description: 插入订单详情，订单
     */
    String insertTradeOrderFromQueue(OrderInfo orderInfo, OrderItem orderItem);

    /**
     * @Author: zhouyu
     * @Param:
     * @Return:
     * @Description: 根据订单编号，查询订单
     */
    OrderInfo getOrderInfoByOrderInfoId(String orderInfoId);

    /**
     * @Author: zhouyu
     * @Param:
     * @Return:
     * @Description: 支付成功，根据订单编号修改状态，
     */
    Integer updateOrderInfoByOrderInfoId(String orderInfoId);


     /**
     *@ClassName: TradeOrderApi
     *@Description  插入订单信息
     *@Author lzy
     *@Date 2021/6/25
     */
     String insertOrderInfoByOrderInfo(OrderInfo orderInfo);

     /**
     *@ClassName: TradeOrderApi
     *@Description 插入订单商品信息
     *@Author lzy
     *@Date 2021/6/25
     */
     String insertOrderItemByOrderItem(List<OrderItem> orderItems);


     /**
     *@ClassName: TradeOrderApi
     *@Description 修改订单发货状态
     *@Author lzy
     *@Date 2021/6/30
     */

    Boolean updateOrderInfoByLoggistics(OrderInfo orderInfo);
}
